package event;

/**
 * Classe abstrata que modela um evento. 
 */
public abstract class Event implements Comparable<Event> {

	private double time;
	
	public Event(double time) {
		this.time = time;
	}
	
	public double getTime() {
		return time;
	}
	
	@Override
	public int compareTo(Event o) {
		return Double.compare(time, o.time);
	}
	
}
